<!--<?php print <<<EOT
-->
<script>
jQuery(function(){
	/*-------点击滚动-------*/
	pw_hscroll("#video-list")
})
</script>
<div id="breadCrumb">
	<strong><a href="index.php?m=house">新房首页</a></strong>
<!--#
if ($houseinfo['area']) {
#-->
	>> <a href="{$houseBaseUrl}q=list&area={$houseinfo['area']}">{$house_field['area'][$houseinfo['area']]['name']}</a>
<!--#
}
#-->
	>> <a href="{$houseBaseUrl}q=info&hid={$hid}">{$houseinfo['name']}</a>
</div>
<div id="banner" class="mb" style="background:url({$houseinfo['banner']}) no-repeat 0 0;">
	<div id="house-title">
		<h1>{$houseinfo['name']}</h1>
		<span class="status">
<!--#
if ($houseinfo['status'] == 1) {
#-->
			<span class="new">新盘</span>
<!--#
} elseif ($houseinfo['status'] == 2) {
#-->
			<span class="onsale">在售</span>
<!--#
} elseif ($houseinfo['status'] == 3) {
#-->
			<span class="rest">尾盘</span>
<!--#
} else {
#-->
			<span class="sold-out">售空</span>
<!--#
}
#-->
		</span>
	</div>
	<ul id="main-nav">
		<li class="current"><a href="{$houseBaseUrl}q=info&hid=$hid">楼盘信息</a></li>
		<li><a href="{$houseBaseUrl}q=album&hid=$hid">相册</a></li>
<!--#
if ($houseinfo['cyid']) {
#-->
		<li><a href="thread.php?cyid={$houseinfo['cyid']}">业主小区</a></li>
<!--#
}foreach ($houseinfo['nav'] as $key => $value) {
#-->
		<li><a href="{$value['link']}"{$value['a_style']}>{$value['title']}</a></li>
<!--#
}
#-->
	</ul>
	<div id="sub-nav">
		<b class="l"></b>
		<ul>
			<li><a href="$basename#house-infos">基本信息</a></li>
			<li><a href="$basename#house-detail">详细信息</a></li>
			<li><a href="$imageTypeUrl&typeid=1">户型图</a></li>
			<li><a href="$imageTypeUrl&typeid=2">样板间</a></li>
			<li><a href="$imageTypeUrl&typeid=3">实景图</a></li>
			<li><a href="$imageTypeUrl&typeid=4">规划图</a></li>
			<li class="current"><a href="{$houseBaseUrl}q=video&hid=$hid">视频</a></li>
			<li><a href="$basename#e-map">地图</a></li>
			<li><a href="{$houseBaseUrl}q=pricedetail&hid=$hid">价格明细</a></li>
			<li><a href="$basename#house-detail" onclick="tab_change(jQuery('#hosue-round'),jQuery('#house-detail').find('.tab-panel'));">周边配套</a></li>
			<li><a href="{$houseBaseUrl}q=evaluations&hid=$hid">楼盘点评</a></li>
		</ul>
		<b class="r"></b>
	</div>
</div>
		<div id="house-video" class="pw-hbox cc">
			<div class="hd">
				<h3>楼盘视频</h3>
			</div>
			<div class="bd">
				<div id="video-view">
<!--#
if ($currentVideo) {
#-->
					<div id="video">
<!--#
if ($currentVideo[ifembed]) {
#-->
						$currentVideo[address]
<!--#
} elseif (strpos($currentVideo[address],'wmv')) {
#-->
				<object height="495" width="100%" showstatusbar="true" type="application/x-mplayer2" data="$currentVideo[address]"><embed height="495" width="100%" showstatusbar="true" src="$currentVideo[address]" type="application/x-mplayer2"></object>

<!--#
} else {
#-->
				<object title="{$currentVideo[descrip]}" codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
			 height="495" width="100%" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" VIEWASTEXT>
			        <param value="sameDomain" name="allowscriptaccess">
					<param value="false" name="menu">
					<param value="opaque" name="wmode">
			        <param value="High" name="quality">
			 		<param NAME="Movie" VALUE="$currentVideo[address]">
			 		<param NAME="Src" VALUE="$currentVideo[address]">
			 		<embed flashVars="url=$imageUrl" src="$currentVideo[address]" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer"
			        type="application/x-shockwave-flash" height="495" width="100%" wmode="opaque" menu="false" allowscriptaccess="sameDomain" type="application/x-shockwave-flash"> </embed>
				</object>
<!--#
}
#-->
						
					</div>
					<h2>$currentVideo[descrip]</h2>
<!--#
} else {
#-->
					<h2>该楼盘还未上传视频</h2>
<!--#
}
#-->
					
				</div>
				<div id="video-list">
					<span class="prev"><a href="#">上一个</a></span>
					<div class="list-wrap">
						<ul>
<!--#
if ($currentVideo) {
#-->
							<li class="current"><a href="$currentVideo[url]"><span class="video"><img src="$currentVideo[mini]" style="height: 75px; width: 100px;" /><i></i></span><em>$currentVideo[descrip]</em></a></li>
<!--#
}
#-->
<!--#
foreach ($videos as $key => $value) {
if( $key==$id ) continue;
#-->
							<li><span class="video"><a href="$value[url]"><img src="$value[mini]" /><i></i></a></span><em><a href="$value[url]">$value[descrip]</a></em></li>
<!--#
}
#-->
						</ul>
					</div>
					<span class="next"><a href="#">下一个</a></span>
				</div>
			</div>
		</div>
	</div>
<!--
EOT;
footer();
?>-->